<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改视频信息</title>
    <link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
    <script src="__PUBLIC__/bootstrap/js/jquery.min.js" type="text/javascript"/>
    <script src="__PUBLIC__/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body>
<!--自动接收updateUserInfo方法传来的User变量-->
<div class="container">
    <form class="form-horizontal" method="post" enctype="multipart/form-data" action="update1" >
        <!--隐藏id-->
        <input type="hidden" name="vid" value="{$video.vid}">
        <div class="form-group ">
            <label for="videoname" class="col-md-2 control-label">视频名称</label>
            <div class="col-md-5">
                <input type="text" class="form-control" id="videoname" name="videoname" placeholder="videoname" value="{$video.videoname}">
            </div>
        </div>

        <div class="form-group">
            <label for="videotype" class="col-md-2 control-label">视频类型</label>
            <div class="col-md-2">
                <select class="form-control" name="videotype" id="videotype">
                    <option value="0" <if condition="$video.videotype eq 0">selected</if>>电影</option>
                    <option value="1" <if condition="$video.videotype eq 1">selected</if>>动漫</option>
                    <option value="2" <if condition="$video.videotype eq 2">selected</if>>电视剧</option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label for="intro" class="col-md-2 control-label">简介</label>
            <div class="col-md-10">
            <textarea class="form-control" rows="5" cols="50" id="intro" name="intro">{$video.intro}
            </textarea>
            </div>
        </div>

        <div class="form-group">
            <label for="int" class="col-md-2 control-label">下载地址</label>
            <div class="col-md-10">
                <input type="URL" class="form-control"id="int" name="address" placeholder="address" value="{$video.address}">
            </div>
        </div>

        <div class="form-group">
        <label for="isfirst" class="col-md-3 control-label">首页推荐</label>
        <div class="col-md-7">
            <label class="radio-inline" >
                <input type="radio" name="isfirst" id="isfirst" value="1">是
            </label>
            <label class="radio-inline">
                <input type="radio" name="isfirst" id="isfirst2" value="0" checked>否
            </label>
        </div>
    </div>

        <div class="form-group">
            <label for="photo" class="col-md-2 control-label">修改头像</label>
            <div class="col-md-2">
                <input type="file" id="photo" name="photo">
            </div>
        </div>
        <div class="col-md-2 col-md-offset-5">
            <button type="submit" class="btn btn-default">修改视频</button>
        </div>
    </form>
</div>
</body>
</html>